package com.yvon.maple.pojo;

import com.yvon.boot.common.validation.group.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author : Yvon
 * @time : 2020/8/3
 */
@Data
@ApiModel("主体请求参数")
public class BaseVO implements Serializable {

    /**
     * id
     */
    @ApiModelProperty(value = "id(新增操作可以不传!)")
    @NotNull(groups = {UpdateGroup.class}, message = "ID不能为空")
    private Long id;

}
